#@layoutT('活动')
#define main()
#@formStart()
#@queryStart('关键词查询')
<input type="search" name="searchName" autocomplete="off" class="layui-input" placeholder="搜索关键词"
       style="padding-left:20px"/>
<i class="layui-icon layui-icon-search" style="position: absolute;top:12px;left:2px"></i>
#@queryEnd()
#@formEnd()

#@table()
#end

#define js()
<!-- 分页表格 -->
<script>
    gridArgs.title = '活动';
    gridArgs.dataId = 'id';
    gridArgs.deleteUrl = '#(path)/portal/qrcode/qrcodeActivity/delete';
    gridArgs.updateUrl = '#(path)/portal/qrcode/qrcodeActivity/edit/';
    gridArgs.addUrl = '#(path)/portal/qrcode/qrcodeActivity/add';
    gridArgs.gridDivId = 'maingrid';
    initGrid({
        id: 'maingrid'
        , elem: '#maingrid'
        , cellMinWidth: 80
        , cols: [[
            {title: '主键', field: 'id', width: 35, checkbox: true},
            {title: '序号', type: 'numbers', width: 35},
            {title: '活动标题', field: 'title'},
            // {title: '可能存在多个公众号 添加个公众号ID', field: 'wechat_id'},
            // {title: '活动编号（用于动态参数二维码）', field: 'activity_num'},
            {title: '备注', field: 'remark'},
            {title: '微信的ticket 通过这个去拿的二维码 ', field: 'ticket',edit:false},
            {title: '二维码图片地址', field: 'qrcode_url',edit:false},
            // {title: '创建时间', field: 'createdate'},
            // {title: '创建人', field: 'createperson'},

            {fixed: 'right', width: 180, align: 'left', toolbar: '#bar_maingrid'}
        ]]
        , url: "#(path)/portal/qrcode/qrcodeActivity/list"
        , searchForm: 'searchForm'
    });

</script>

#end